#include "autolock.h"

namespace log4x
{
AutoLock::AutoLock(Mutex &mutex): _mutex(mutex)
{
    _mutex.lock();
}

AutoLock::~AutoLock()
{
    _mutex.unlock();
}
}
